package com.atguigu.srb.core.pojo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CommunityMemberInformation对象",description = "社团成员信息表")
public class CommunityMemberInformation {
    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "社团成员信息ID", required = true, example = "1")
        @TableId(value = "community_member_information_id", type = IdType.AUTO)
        private Integer communityMemberInformationId;

        @ApiModelProperty(value = "社团编号", required = true, example = "CN12345")
        private String communityNumber;

        @ApiModelProperty(value = "社团名称", required = true, example = "科技创新社")
        private String communityName;

        @ApiModelProperty(value = "学号", required = true, example = "202101")
        private Integer studentNumber;

        @ApiModelProperty(value = "姓名", required = true, example = "张三")
        private String fullName;

        @ApiModelProperty(value = "性别", required = true, example = "男")
        private String gender;

        @ApiModelProperty(value = "专业", required = true, example = "计算机科学与技术")
        private String major;

        @ApiModelProperty(value = "入学年份", required = true, example = "2021")
        @TableField("enrollment_year_") // 指定数据库列名
        private String enrollmentYear;

        @ApiModelProperty(value = "所属二级学院", required = true, example = "信息工程学院")
        private String secondaryCollege;

        @ApiModelProperty(value = "社团团长", required = true, example = "李四")
        private String headOfAssociation;

        @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
        @TableField("is_deleted")
        @TableLogic
        private Boolean deleted;
}
